# Maintainer: Willow Barraco <contact@willowbarraco.fr>
pkgname=diskonaut
pkgver=0.11.0
pkgrel=3
pkgdesc="Terminal disk space navigator"
url="https://github.com/imsnif/diskonaut"
license="MIT"
arch="all !armhf !s390x !riscv64" # doesn't build
makedepends="cargo cargo-auditable"
source="$pkgname-$pkgver.tar.gz::https://github.com/imsnif/diskonaut/archive/refs/tags/$pkgver.tar.gz"
options="net"


prepare() {
	default_prepare
	cargo fetch --target="$CTARGET" --locked
}

build() {
	cargo auditable build --release --frozen
}

check() {
	cargo test --frozen
}

package() {
	install -Dm755 target/release/diskonaut "$pkgdir"/usr/bin/diskonaut
}

sha512sums="
c682f40e9a0592214826beba17a8b875a80a0a258e503fbcc821548fa41b998133cf30e020abffddc4775abb37e1df267669c7e4b3114fe0c4532b9a48972768  diskonaut-0.11.0.tar.gz
"
